<template>
  <!-- 排行榜页面中右侧页面 -- 评论组件 -->
  <div class="list-comment">
    <!-- 书写评论区域组件 + 展示 -->
    <comment-write></comment-write>
    <!-- 分页器 -->
    <pager :currentPage="currentPage" pageSize="20" pageGroup="7" total="999" @getCurrentPage="getCurrentPage"></pager>
  </div>
</template>

<script>
import commentWrite from '@/components/comment-write'
export default {
    name:'list-comment',
    components:{commentWrite},
    data(){
      return{
        // 分页器当前页数
        currentPage:10
      }
    },
    methods: {
      getCurrentPage(page){
        this.currentPage = page
      }
    },
}
</script>

<style scoped lang="scss">
  .list-comment{
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    margin-top: 40px;
  }
</style>

<style scoped>
  /* 修改评论区组件的样式 */
  ::v-deep .submit-word{
    padding: 0 !important;
  }
</style>